export const edgeFractal = {
    shape: 'polygon',
    r: 100,
    n: 6,
    a: 0,
    fractal: 'edgeFractal',
    centre: {
        shape: 'circle',
        r: 3,
        props: {
            fill: 'red',
            stroke: 'none'
        }
    },
    props: {
        stroke: 'blue'
    },
    axis: { sticks: {} }

}

export const vertexFractal = {
    shape: 'polygon',
    r: 100,
    n: 6,
    a: 0,
    fractal: 'vertexFractal',
    centre: {
        shape: 'circle',
        r: 3,
        props: {
            fill: 'red',
            stroke: 'none'
        }
    },
    props: {
        stroke: 'green'
    },
    axis: { sticks: {} }
}

export const edgeMirror = {
    shape: 'polygon',
    r: 100,
    n: 6,
    a: 0,
    fractal: 'edgeMirror',
    centre: {
        shape: 'circle',
        r: 3,
        props: {
            fill: 'red',
            stroke: 'none'
        }
    },
    axis: {
        r: 50,
        sticks: {

        }
    },
}

export const vertexMirror = {
    shape: 'polygon',
    r: 100,
    n: 6,
    a: 0,
    fractal: 'vertexMirror',
    centre: {
        shape: 'circle',
        r: 3,
        props: {
            fill: 'red',
            stroke: 'none'
        }
    },
    props: {
        stroke: 'purple'
    },
    axis: {
        r: 50,
        sticks: {
        }
    },
}


export const edgeMirrorLink = {
    shape: 'polygon',
    r: 100,
    n: 10,
    a: 0,
    link: {},
    fractal: 'edgeMirror',
    props: {
        stroke: 'red'
    }
}

export const fractalGroup = {
    shape: 'polygon',
    r: 100,
    n: 12,
    a: 0,
    props: {
        stroke: 'purple'
    },
    fractal: ['vertexFractal', 'edgeFractal']
}

export const fractalFull = {
    shape: 'polygon',
    r: 100,
    n: 36,
    a: 0,
    vertex: {
        shape: 'circle',
        r: 1
    },
    fractal: ['vertexMirror', 'edgeMirror', 'vertexFractal', 'edgeFractal'] //'vertexFractal',
}

export const fractalRadio = {
    shape: 'polygon',
    r: 100,
    n: 100,
    // props: {
    //     stroke: 'purple'
    // },
    fractal: [{
        type: 'vertexFractal',
        radio: 0.5
    }, {
        type: 'vertexMirror',
        radio: 0.5
    }]
}

export const edgeMid = {
    shape: 'polygon',
    r: 200,
    n: 6,
    fractal: {
        type: 'edgeMid',
        level: 20
    },
    radius: {}
    // radius:{
    //     curve:{
    //      type:   'curve',
    //      orient:true
    //     }
    // }
    // label: {
    // }
}

export const yanghui = {
    shape: 'polygon',
    r: 200,
    n: 4,
    fractal: [{
        type: 'yanghui',
        level: 5
    }, {
        type: 'edgeMid',
        level: 10
    }],
    vertex: {
        r: 2
    },
    props: {
        stroke: 'red'
        // fill:'rgba(255,0,0,10)'
    }
}

export const gougu = {
    shape: 'gougu',
    r: 100,
    n: 2,
    fractal: {
        fractalLevel: 6
    }

}

export const squareFractal = {
    shape: 'squareFractal',
    r: 100,
    // n: 2,
    fractalLevel: 5,
    assemble: false,
    color: 'colorCircle'
}

export const sierpinskiTriangle = {
    shape: 'sierpinskiTriangle',
    r: 200,
    depth: 6,
    a: 0,
    k: 1,
    props: {
        stroke: 'red',
        fill: 'none'
    }
}

export const koch = {
    shape: 'koch',
    r: 200,
    n: 3,
    depth: 4,
    a: 0,
    // k: 1,
    props: {
        stroke: 'red',
        fill: 'none'
    }
}

export const mitsubishi = {
    shape: 'mitsubishi',
    r: 200,
    n: 3,
    depth: 0,
    a: 0,
    // k: 1,
    props: {
        stroke: 'red',
        fill: 'none'
    }
}
export const hexaflake = {
    shape: 'hexaflake',
    r: 100,
    n: 3,
    depth: 4,
    a: 0,
    // k: 1,
    props: {
        stroke: 'red',
        fill: 'none'
    }
}

export const tree = {
    shape: 'tree',
    r: 100,
    n: 3,
    depth: 9,
    a: -90,
    k: 0.5,
    random: 10,
    treeCurve: 'QQ',
    color: 'colorCircle',
    alpha: 0.9
    // props: {
    //     stroke: 'red',
    //     fill: 'none'
    // }
}

export const treeCircle = {
    shape: 'treeCircle',
    r: 100,
    n: 3,
    depth: 9,
    a: -90,
    k: 0.5,
    random: 10,
    color: 'colorCircle',
    alpha: 0.9
    // props: {
    //     stroke: 'red',
    //     fill: 'none'
    // }
}